import axios from './http'
import qs from 'qs'
import base from './base'

const person = {
  getAddress (params) {
    return axios.get(`${base.pro}/api/profile/setAddress`, { params })
  },
  postAddress (params) {
    return axios.post(`${base.pro}/api/profile/setAddress`, qs.stringify(params))
  },
  getAboutInfo (params) {
    return axios.post(`${base.pro}/api/profile/aboutUs`, qs.stringify(params))
  },
  postOpinion (params) {
    return axios.post(`${base.pro}/api/profile/suggestFeedback`, qs.stringify(params))
  },
  getOrderData (params) {
    return axios.post(`${base.pro}/api/order/orderList`, qs.stringify(params))
  },
  getLikeData (params) {
    return axios.post(`${base.pro}/api/card/getCardList`, qs.stringify(params))
  },
  postActivation (params) {
    return axios.post(`${base.pro}/api/card/activateCard`, qs.stringify(params))
  }
}
export default person
